REM [26/04/04] Ken asks: What is the next line for?
call lf_95

REM This just compiles and links it
REM Delete old version of EXE
REM [26/04/04] Now MGE2GP.EXE by default
REM (WAS) if exist mge2xx.exe del mge2xx.exe
if exist mge2gp.exe del mge2gp.exe

REM MPSGE module
lf95 -c mpsge
if errorlevel 1 goto error
lm mpsge -+mpsge ;

REM mgeGP module
lf95 -c mpsgp
if errorlevel 1 goto error
lm mpsgp -+mpsgp;

REM mgeGMS module
lf95 -c mpsgms
if errorlevel 1 goto error
lm mpsgms -+mpsgms ;

REM STRT70AM for calls to GEMPACK routines
REM Suppress for the present
REM (HAR) lf95 -c -fix strt70am

REM main program
REM Suppress GP70 part for the present
REM (HAR) lf95 mge2xx strt70am.obj -lib mpsge -lib mpsgms -lib mpsgp -lib c:\gp7004fs95\ext.lib -lib c:\gp7004fs95\gpa -lib c:\gp7004fs95\gpb 
REM [26/04/04] EXE is called mge2gp.exe (converts to GEMPACK) for the present
lf95 mge2xx -lib mpsge -lib mpsgms -lib mpsgp -exe mge2gp.exe  
if errorlevel 1 goto error2

goto compok

REM Run the program
REM mge2xx > mge2xx.out
REM if errorlevel 1 goto runerror

REM goto ranok

:error
@echo off
echo .
echo Error compiling MPSGE routines
echo .
goto end

:error2
@echo off
echo .
echo Error compiling and linking main program
echo .
goto end

:runerror
@echo off
echo .
echo Error running main program
echo .
goto end

:ranok
@echo off
echo .
echo Seems to have compiled and ran ok
echo .
goto end

:compok
@echo off
echo .
echo Seems to have compiled and linked ok
echo .
REM if exist "c:\Program Files\AsPack\aspack.exe" start aspack mge2xx.exe /Q  /B- 
if exist "c:\Program Files\AsPack\aspack.exe" start aspack mge2gp.exe /Q  /B- 
goto end


:end
